<%@ include file="/inc.jsp"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>角色列表</title>
</head>
<body>
<h1>角色列表</h1>
<table>
    <tr>
        <td>ID</td>
        <td>角色名</td>
        <td>操作</td>
    </tr>
    <s:iterator value="#roles">
        <tr>
            <td>${id}</td>
            <td>${name}</td>
            <td>
                <a href="/user/delete?id=${id}">删除</a>
                <a href="/user/reset?id=${id}">查看用户</a>
            </td>
        </tr>
    </s:iterator>
</table>
<a href="/admin/add">添加角色</a>
</body>
</html>
